<?php
$mysqli= new mysqli("localhost","root","root","db_yemaijiu");
if($mysqli->connect_errno){
    die();
}
$shouji=$_POST["shouji"];
$userpass=$_POST["userpass"];
$result=$mysqli->query("select * from t_users where shouji='{$shouji}' and password='{$userpass}'");
$data=$result->fetch_assoc();
echo json_encode($data);
